import request from '@/utils/request'

// 查询值班日志内容分页
export function pageLogContent(query) {
  return request({
    url: '/base/logContent/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询值班日志内容列表
export function listLogContent(query) {
  return request({
    url: '/base/logContent/list',
    method: 'get',
    params: query,
    factoryId:true
  })
}

// 查询值班日志内容详细
export function getLogContent(id) {
  return request({
    url: '/base/logContent/info/' + id,
    method: 'get'
  })
}

// 新增值班日志内容
export function addLogContent(data) {
  return request({
    url: '/base/logContent',
    method: 'post',
    data: data,
    factoryId:true,
  })
}

// 修改值班日志内容
export function updateLogContent(data) {
  return request({
    url: '/base/logContent',
    method: 'put',
    data: data
  })
}

// 删除值班日志内容
export function delLogContent(data) {
  return request({
    url: '/base/logContent/remove/batch',
    method: 'delete',
    data
  })
}

// 导出值班日志内容
export function exportLogContent(query) {
  return request({
    url: '/base/logContent/export',
    method: 'get',
    params: query
  })
}

// 下载模板值班日志内容
export function downImportTemplate() {
  return request({
    url: '/base/logContent/importTemplate',
    method: 'get'
  })
}
